﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Swordsman : Monster
{
    public float thumpAttack;
    public float stabAttack;

    public float thumpAttackCD;
    public float stabAttackCD;

    private float thumpAttackCDTimer;
    private float stabAttackCDTimer;
    


    public void StartThumpAttackCDTiming()
    {
        thumpAttackCDTimer = 0.0f;
    }


    public void StartStabAttackCDTiming()
    {
        stabAttackCDTimer = 0.0f;
    }



    public bool IsInThumpAttackCD()
    {
         return thumpAttackCDTimer < thumpAttackCD;
    }


    public bool IsInStabAttackCD()
    {
        return stabAttackCDTimer < stabAttackCD;
    }


    protected override void Timing()
    {
        if (normalAttackCDTimer < normalAttackCD)
        {
            normalAttackCDTimer += Time.deltaTime;
        }
        if (thumpAttackCDTimer < thumpAttackCD)
        {
            thumpAttackCDTimer += Time.deltaTime;
        }
        if (stabAttackCDTimer < stabAttackCD)
        {
            stabAttackCDTimer += Time.deltaTime;
        }
    }
}
